<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片轮播</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>

<div class="carousel">
    <div class="carousel-inner">
        <div class="carousel-item">
            <img src="img1.png" alt="Image 1">
        </div>
        <div class="carousel-item">
            <img src="img2.png" alt="Image 2">
        </div>
        <div class="carousel-item">
            <img src="img3.png" alt="Image 3">
        </div>
    </div>
    <div class="carousel-controls">
        <button id="prevButton">‹</button>
        <button id="nextButton">›</button>
    </div>
</div>

<script src="script.js"></script>
</body>
</html>